package edu.biwu.service.impl;

import edu.biwu.service.UserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author 王俊彪
 * @version 1.0
 */
//@Component("userService")//相当于<brean id="userService" class ="edu.biwu.service.impl.UserServiceImpl" />
@Service
public class UserServiceImpl implements UserService {

    @Value("12")
    private int num;
    @Value("小明")
    private String str;

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "num=" + num +
                ", str='" + str + '\'' +
                '}';
    }
}
